package com.test.clyq.entity;

import com.test.entity.Item;
import com.test.json.JsonUtil;

/**
 * 评论实体. <br>
 * 评论实体.
 * <p>
 * Copyright: Copyright (c) Dec 23, 2010 9:03:05 AM
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: suncg@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
public class Comment implements Item {

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	/** 评论内容 */
	private String commentContent;

	/** 评论id */
	private Long commentId;

	/** 评论审核状态 1通过 0未通过 */
	private Integer commentStatus;

	/** 评论时间 */
	private Long commentTime;

	/** 类型 0图片 1文章 */
	private Integer commentType;

	/** 评论内容实体 */
	private EntityItem entityItem;

	/** 新闻id* */
	private Long entityItemCommentId;

	private String entityName;

	/** 用户手机号 */
	private String mobile;

	public String getCommentContent() {
		return commentContent;
	}

	public Long getCommentId() {
		return commentId;
	}

	public Integer getCommentStatus() {
		return commentStatus;
	}

	public Long getCommentTime() {
		return commentTime;
	}

	public Integer getCommentType() {
		return commentType;
	}

	public EntityItem getEntityItem() {
		return entityItem;
	}

	public Long getEntityItemCommentId() {
		return entityItemCommentId;
	}

	public String getEntityName() {
		return entityName;
	}

	public Long getId() {
		return commentId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

	public void setCommentStatus(Integer commentStatus) {
		this.commentStatus = commentStatus;
	}

	public void setCommentTime(Long commentTime) {
		this.commentTime = commentTime;
	}

	public void setCommentType(Integer commentType) {
		this.commentType = commentType;
	}

	public void setEntityItem(EntityItem entityItem) {
		this.entityItem = entityItem;
	}

	public void setEntityItemCommentId(Long entityItemCommentId) {
		this.entityItemCommentId = entityItemCommentId;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public void setId(Long id) {
		this.commentId = id;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String toJSON() {
		return JsonUtil.getJsonStringFromObject(this);
	}

	public String toXML() {
		return null;
	}

}
